package com.koala.learn.json;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * @author yantingrui
 * @date 2022/7/20   20:01
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Role implements Serializable {

    @JsonProperty("username")
    private String name;
    private Integer age;

}
